import request from '@/utils/request'

// 查询部门主管表列表
export function listIntendant(query) {
  return request({
    url: '/system/intendant/list',
    method: 'get',
    params: query
  })
}

// 查询部门主管表详细
export function getIntendant(diid) {
  return request({
    url: '/system/intendant/' + diid,
    method: 'get'
  })
}

// 新增部门主管表
export function addIntendant(data) {
  return request({
    url: '/system/intendant',
    method: 'post',
    data: data
  })
}

// 修改部门主管表
export function updateIntendant(data) {
  return request({
    url: '/system/intendant',
    method: 'put',
    data: data
  })
}

// 删除部门主管表
export function delIntendant(diid) {
  return request({
    url: '/system/intendant/' + diid,
    method: 'delete'
  })
}
